package com.kaifamiao.demo.d0815;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Vector;

public class Demo {

    public static void main(String[] args) {
        LinkedList list = new LinkedList();

        list.add(10);
        list.add(20);
        list.add(30);

        System.out.println(list.get(1));

        // Deque
        list.addFirst(5);

        list.pollFirst();
    }
}
